fix: swap rows/cols in exec resize adapter - #54
Conversation
AdapterV1 has (cols, rows) parameter order but PluginClient expects (rows, cols). Passing them straight through caused the remote terminal to receive swapped dimensions (e.g. 236 rows × 36 cols instead of 36 rows × 236 cols), corrupting terminal output.
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
AdapterV1.ResizeSessionreceives(cols, rows)but passes them straight through toPluginClient.ResizeSessionwhich expects(rows, cols)Verified via
stty sizein exec session showing236 36(rows cols) instead of36 236.Test plan
stty size— should match the UI terminal dimensionsls -lah /— output should render without corruptionSummary by CodeRabbit